html, body { 
  height: 100%; 
  width: 100%;
  margin: 0;
  padding: 0;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.d-none {
  display: none !important;
}

@media (orientation: portrait) {
  .d-sm-block {
    display: block !important;
  }
}

@media (orientation: landscape) and (min-height: 764px) {
  .d-md-none {
    display: none !important;
  }

  .d-md-block {
    display: block !important;
  }
}

.flex-container {
  display: flex;
  justify-content: center;
  width: 100%; 
  height: 100%;
}

.flex-content { 
    flex-grow: 1; 
    border: none; 
    margin: 0; 
    padding: 0; 
}

.flexnav {
  position: absolute;
  display: none;
  flex-direction: column;
  justify-content: end;
  bottom: 0;
  width: 100%;
  max-width: 1024px;
}

.btnlist {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background-color: rgba(0,0,0,0.5);
}

.btnlist .btn-group {
  display: inline-flex;
  gap: 4px;
  width: 100%;
}

.btnlist button{
  color: rgb(0, 0, 0); /* White text */
  background-color: rgb(225, 225, 225);
  padding: 10px 30px; /* Some padding */
  margin-bottom: 4px;
  cursor: pointer; /* Pointer/hand icon */
  width: 100%; /* Set a width if needed */
  display: block; /* Make the buttons appear below each other */
  border: none;
}

.btnlist button:hover {
  color:rgb(0, 0, 0);
  background-color: rgb(151, 192, 255) !important;
}

.btnlist button.headerbtn {
  margin-top: 16px;
  color: white; /* White text */
  background-color: black; /* Green background */
}

.btnlist button.headerbtn:hover {
  color:rgb(255, 255, 255);
  background-color: rgb(38, 71, 121) !important; /* Darker background on mouse-over */
}

.btnlist button.active {
  color:rgb(255, 255, 255);
  background-color: rgb(46, 123, 238) !important; /* Darker background on mouse-over */
}

#baufeld, #nutzung {
  margin-top: 20px;
  width: 100%;
}

#baufeld {
  margin-top: 5px;
}

@media (orientation: landscape) {
  .flexnav {
    width: unset;
    height: 100%;
    left: 10px;
    height: 100%;
    justify-content: center;
  }
}
